package com.ruanyun.modular.ry.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 地址表
 * </p>
 *
 * @author conan
 * @since 2020-12-02
 */
@TableName("ry_address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 用户id
     */
    @TableField("customer_id")
    private Long customerId;

    /**
     * 收货人姓名
     */
    @TableField("consignee_username")
    private String consigneeUsername;

    /**
     * 收货人联系方式
     */
    @TableField("consignee_mobile")
    private String consigneeMobile;

    /**
     * 省份名称
     */
    @TableField("province_name")
    private String provinceName;

    /**
     * 城市名称
     */
    @TableField("city_name")
    private String cityName;

    /**
     * 区域名称
     */
    @TableField("areas_name")
    private String areasName;

    /**
     * 详细地址
     */
    @TableField("address")
    private String address;

    /**
     * 纬度
     */
    @TableField("latitude")
    private BigDecimal latitude;

    /**
     * 经度
     */
    @TableField("longitude")
    private BigDecimal longitude;

    /**
     * 0 非默认 1 默认
     */
    @TableField("is_default")
    private Integer isDefault;

    /**
     * 1:正常，2:删除，3:禁用
     */
    @TableField("del_flag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getConsigneeUsername() {
        return consigneeUsername;
    }

    public void setConsigneeUsername(String consigneeUsername) {
        this.consigneeUsername = consigneeUsername;
    }

    public String getConsigneeMobile() {
        return consigneeMobile;
    }

    public void setConsigneeMobile(String consigneeMobile) {
        this.consigneeMobile = consigneeMobile;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreasName() {
        return areasName;
    }

    public void setAreasName(String areasName) {
        this.areasName = areasName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Address{" +
        "id=" + id +
        ", customerId=" + customerId +
        ", consigneeUsername=" + consigneeUsername +
        ", consigneeMobile=" + consigneeMobile +
        ", provinceName=" + provinceName +
        ", cityName=" + cityName +
        ", areasName=" + areasName +
        ", address=" + address +
        ", latitude=" + latitude +
        ", longitude=" + longitude +
        ", isDefault=" + isDefault +
        ", delFlag=" + delFlag +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
